<!DOCTYPE html>
<html lang="hi">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <title>Heart Sutra</title>
  <meta name="description" content="Sanskrit The Heart Sutra">
  <meta name="keywords" content="sanskrit,Heart">
  <meta property="og:image" content="img/favicon.png">
  <link rel="icon" type="image/png" href="img/favicon.png">
  <link rel="stylesheet" href="script/sanskrit.css?v=1214">
  <link rel="stylesheet" href="script/audio.css?v=1214">
  <style>
      #down-div { position: fixed; right: 10px; bottom: 8px; font-size: 14px; user-select: none; }
      #down-div > div { text-align: right; }
      #down-div ul { display: none; }
      #down-div li + li { margin-top: .5em; }
      #down-div.show-d ul { display: block; }
  </style>
</head>
<body class="show-odd show-deva show-iast hover-word show-audio">
<div id="top-bar">
  <span class="home" onclick="location.href='./'" title="Home"><img src="img/favicon.png" alt="Home"></span>
  <span onclick="biggerFont()">+</span>
  <span onclick="smallerFont()">-</span>
  <span data-toggle="show-odd">音节</span>
  <span data-toggle="show-deva">天城体</span>
  <span data-toggle="show-iast">转写</span>
  <span data-toggle="no-sandhi">无连音</span>
  <span data-toggle="hover-word">高亮词</span>
  <span data-toggle="show-audio">读音</span>
</div>
<div class="tip no-print">台大 Miroslav Rozehnal 念诵，点左上角可查看 印度梵语教授穆克纪的教念版、印度梵唱版</div>
<div id="body"></div>
<div id="down-div">
  <ul id="down">
    <li><a href="pdf/heart-sutra.pdf">合并 天城体和转写</a></li>
    <li><a href="pdf/heart-sutra-iast.pdf">已连音变化的转写</a></li>
    <li><a href="pdf/heart-sutra-iast-org.pdf">无连音变化的转写</a></li>
    <li><a href="pdf/heart-sutra-deva.pdf">仅天城体</a></li>
  </ul>
  <span onclick="document.getElementById('down-div').classList.toggle('show-d')">下载 PDF</span>
  <span class="note">音频来自<a target="_blank" href="https://buddhism.lib.ntu.edu.tw/en/lesson/fan/lesson_fan2.jsp#2">NTU</a></span>
</div>
<script>
  window.voc_audios = {'prajñā':'praj~naa','svabhāva':'svabhaava','tadyathā':'tadyathaa','rūpaṃ':'ruupaM','rūpa':'ruupa','abhisambuddhāḥ':'abhisambuddhaaH','acittā':'achittaa','amithyatvāt':'amithyatvaat','aniruddhā':'aniruddhaa','anutpannā':'anutpannaa','anuttara':'anuttara','anuttarāṃ':'anuttaraaM','atrasto':'atrasto','bodhisattvo':'bodhisattvo','bodhi':'bodhi','caramāṇo':'charamaaNo','caryāṃ':'charyaaM','chāriputra':'chaariputra','dharmāḥ':'dharmaaH','dhātur':'dhaatur','gandha':'gandha','gate':'gate','gaṃbhīrāyāṃ':'gaMbhiiraayaaM','ghrāṇa':'ghraaNa','hṝdaya':'hRRiidaya','hṛdaya':'hRRidaya','ihaśāriputra':'ihashaariputra','jihvā':'jihvaa','jñātavyaṃ':'j~naatavyaM','kāya':'kaaya','lakṣaṇā':'lakShaNaa','mantro':'mantro','manāṃsi':'manaaMsi','najñānaṃ':'naj~naanaM','narūpaṃ':'naruupaM','nasaṃjñā':'nasaMj~naa','nasaṃskārā':'nasaMskaaraa','navedanā':'navedanaa','navijñānam':'navij~naanam','namaḥ':'namaH','niṣṭhanirvāṇaḥ':'niShThanirvaaNaH','nāvidyākṣayo':'naavidyaakShayo','parasaṃgate':'parasaMgate','pāragate':'paaragate','pāramitāyām':'paaramitaayaam','pāramitāyāṃ':'paaramitaayaamm','pāramitām':'paaramitaam','pāramitā':'paaramitaa','rasa':'rasa','rūpaṃśūnyatā':'ruupaMshuunyataa','samyaksaṃbodhiṃ':'samyaksaMbodhiM','samāptam':'samaaptam','sarvabuddhāḥ':'sarvabuddhaaH','sarvadharmāḥ':'sarvadharmaaH','sarvajñāya':'sarvaj~naaya','sarva':'sarva','satyam':'satyam','saṃskāra':'saMskaara','spraṣṭavya':'spraShTavya','tadrūpam':'tadruupam','tasmāc':'tasmaach','tasmāj':'tasmaaj','tryadhavavyavasthitāḥ':'tryadhavavyavasthitaaH','tāṃśca':'taaMshcha','valokite':'valokite','varaṇaḥ':'varaNaH','vedanā':'vedanaa','vidyā':'vidyaa','viharaty':'viharaty','vijñānāni':'vij~naanaani','viparyāsātikrānto':'viparyaasaatikraanto','yadrūpaṃ':'yadruupaM','āryā':'aaryaa','āśritya':'aashritya','śabda':'shabda','śrotra':'shrotra','śūnyataivarūpaṃ':'shuunyataivaruupaM','śūnyatāyāṃ':'shuunyataayaaM','śūnyatā':'shuunyataa','śūnyān':'shuunyaan','sūtraṃ':'suutraM','svāhā':'svaahaa','saṃjñā':'saMj~naa','mahā':'mahaa','iti':'iti'}
</script>
<script src="script/sanscript.es6.js?v=1216"></script>
<script src="script/sanskrit.js?v=1216"></script>
<script>
  const iastContent = `prajñā-pāramitā-hṝdaya-sūtraṃ▷01
nama(s,ḥ) sarva-jñāya | ▷02b
āry(a a,ā-)valokit(a ī,e-)śvar(a,o) bodhisattv(as,aḥ,o)▷03a
  gaṃbhīrāyā(m,ṃ) prajñā-pāramitāyā(m,ṃ) caryā(m,ṃ) caramāṇ(as,aḥ,o) v(i-,y)avalokayati-sma |▷03b
  pañca-skandhās▷03c tā(n ,ṃś)ca svabhāva-śūnyān-paśyati-sma |▷04
iha-śāriputra rūpa(m,ṃ)-śūnyatā śūnyat(ā e,ai)va-rūpa(m,ṃ) ▷05
rūpā(t ,n-)na-pṛthak-śūnyatā śūnyātāy(ās ,āḥ ,ā-)na-pṛtha(k ,g-)rūpa(m,ṃ) ▷06
ya(t ,d-)rūpa(m,ṃ) sā-śūnyatā yā-śūnyatā ta(t ,d-)rūpam |▷07
evam-eva-vedanā-saṃjñā-saṃskāra-vijñānāni |▷08
iha-śāriputra sarva-dharmā(s,ḥ) śūnyatā-lakṣaṇ(ās,āḥ,ā)▷09
anutpann(ās,āḥ,ā) aniruddh(ās,āḥ,ā) amal(ās,āḥ,ā)( a,-)vimal(ās,āḥ,ā) anūn(ās,āḥ,ā) aparipūrṇā(s,ḥ) |▷10
tasmā(t ś,c-ch)āriputra śūnyatāyā(m,ṃ) na-rūpa(m,ṃ)
  na-vedanā na-saṃjñā na-saṃskār(ās,āḥ,ā) na-vijñānam |▷11
  na cakṣuḥ-śrotra-ghrāṇa-jihvā-kāya-manāṃsi▷12
  na rūpa-śabda-gandha-rasa-spraṣṭavya-dharmā(s,ḥ)▷13
  na-cakṣur-dhātu(s,r)-Yāva(t ,n-)na man(aḥ,o)-vijñāna-dhātu(s,ḥ) ▷14
  na vidyā n(a a,ā)vidyā n(a a,ā)vidyā-kṣay(as,aḥ,o)
  yāva(t ,n-)na-jarā-maraṇa(m,ṃ) na-jarā-maraṇa-kṣay(as,aḥ,o)▷15
  na-duḥkha-samudaya-nirodha-mārg(ās,āḥ,ā)▷16 na-jñāna(m,ṃ) na prāpti(s ,ḥ ,r-)n(a-a,ā)prāpti(s,ḥ) |▷17
tasmā(t ś,c-ch)āriputr(a a,ā-)prāptitvā(t,d)-bodhisattva(s,ḥ)▷18
  prajñā-pāramitām-āśritya viharat(i-,y-)acitt(a-ā,ā-)varaṇa(s,ḥ) |▷19
  citt(a-ā,ā-)varaṇa-n(a-a,ā-)stitvā(t,d)-atrast(as,aḥ,o)
  viparyās(a-a,ā-)tikrānt(as,aḥ,o) niṣṭha-nirvāṇa(s,ḥ) |▷20
tr(i-,y)adhava-vyavasthitā(s,ḥ) sarva-buddhā(s,ḥ) prajñā-pāramitām āśritya▷21
  anuttarā(m,ṃ) samyak-saṃbodhi(m,ṃ) abhi-sambuddhā(s,ḥ) |▷22
tasmā(t ,j-)jñātavya(m,ṃ)▷23  prajñā-pāramitā mahā-mantr(as,aḥ,o) mahā-vidyā-mantr(as,aḥ,o)▷24
  (a,’)nuttara-mantr(as,aḥ,o) (a,’)sama-sama-mantra(s,ḥ) sarva-duḥkha-praśamana(s,ḥ)▷25
  satyam-amithyatvāt |▷26 prajñā-pāramitāyām-ukt(as,aḥ,o) mantra(s,ḥ) |▷27
ta(d-,d)yathā gate gate pāra-gate parasaṃ-gate bodhi svāhā |▷28
iti prajñā-pāramitā-hṛdaya-sūtraṃ samāptam ||▷29`

  window.renderBody = function (sandhi) {
    iastContent.split('\n').forEach((text, i) => renderRow(text, i, {
      sandhi: sandhi, audioPrefix: 'mp3/heart_ntu/heart', vocAudio: true}))
  }
  renderBody('both')
</script>
</body>
</html>